<template>
	<view class='pages'>
		<scroll-view scroll-y="true" class='contentbox' @scrolltolower="scrolltolower">
			<!-- <view v-if="list.length == 0">
				<view style="height: 100rpx;"></view>
				<u-empty text=" - 暂无数据 - " mode="list"></u-empty>
			</view> -->
			<view class="font-size-30 bold boxes text-center" style="color: #457FD3;" @click="call(phone)">
				{{phone}}
			</view>
		</scroll-view>
	</view>
</template>

<script>
	const app = getApp();
	export default {
		data() {
			return {
				phone:app.globalData.phone
			}
		},
		methods: {
			call(e){
				uni.makePhoneCall({
					// 手机号
					phoneNumber: e+'',
					// 成功回调
					success: (res) => {
						console.log('调用成功!');
					},
					// 失败回调
					fail: (res) => {
						console.log(res)
						console.log('调用失败!');
					}
				});
			},
		}
	}
</script>

<style scoped lang="less">
	.pages {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		overflow: hidden;
		display: flex;
		flex-direction: column;
	}
	.contentbox {
		flex: 1;
		overflow: hidden;
		padding:30rpx;
		box-sizing: border-box;

		.boxes {
			padding: 25rpx 30rpx;
			margin-bottom: 20rpx;
			border-radius: 20rpx;
			border: 1px solid #eee;
		}
	}
</style>